home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ TrueType Options 1.xpl < prev    next >
Text File  |  2001-04-12  |  2KB  |  67 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="6"
  3. "COUNT"="2"
  4. "UIPATH"="Appearance\Interface\TrueType Fonts"
  5. "NAME"="TrueType Fonts Options"
  6. "VERSION"="1.24"
  7. "OSVERSION"="0101011"
  8. "LANGUAGE"="VBScript"
  9. "TEXT 1"="Allow TrueType fonts"
  10. "TEXT 2"="Display only TrueType fonts"
  11. "DESCRIPTION 1"="If the first option is activated, TrueType fonts are enabled (the default) - all programs can use TrueType fonts."
  12. "DESCRIPTION 2"="If this is disabled, no program can use TrueType fonts!"
  13. "DESCRIPTION 3"="If the second option is activated, the programs can ONLY use TrueType fonts - all other fonts are disabled."
  14. "DESCRIPTION 4"="This might lead to very strange dialog windows, if the program tries to use the font "MS Sans Serif" (i.e. Outlook, IE...) because this is *NOT* a TrueType font!"
  15. "AUTHOR"="Xteq Systems"
  16. "CONTACTURL"="http://www.xteq.com"
  17. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  18. "COMMENT 1"=" "
  19. "COMMENT 2"="Thanks to John Hansen [sasjwh@wnt.sas.com] for the Windows 2000 part!"
  20.  
  21.  
  22.  
  23. sp="HKCU\Software\Microsoft\Windows NT\CurrentVersion\TrueType\"
  24. sV1="TTEnable"
  25. sV2="TTonly"
  26.  
  27. Sub Plugin_Initialize 
  28.   i=RegReadValue(sP&sV1)
  29.  
  30.   if i=1 then
  31.      Call SetUIElement(1,true)
  32.   end if
  33.  
  34.   i=RegReadValue(sP&sV2)
  35.   if i=1 then
  36.      Call SetUIElement(2,true)
  37.   end if
  38. End Sub
  39.  
  40. Sub Plugin_CheckData(ElementIndex)
  41. End Sub
  42.  
  43. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  44.  b=GetUIElement(1)
  45.  if b=true then
  46.    Call RegWriteValue(sP&sV1,"1",1)
  47.  else
  48.    Call RegWriteValue(sP&sV1,"0",1)
  49.  end if
  50.  
  51.  b=GetUIElement(2)
  52.  if b=true then
  53.    Call RegWriteValue(sP&sV2,"1",1)
  54.  else
  55.    Call RegWriteValue(sP&sV2,"0",1)
  56.  end if
  57.  
  58.  Restart
  59. End Sub
  60.  
  61.  
  62. Sub Plugin_Terminate 
  63. End Sub
  64.  
  65.  
  66.  
  67.